﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DesignPatterns.Factory.Model
{
    public class Fruit
    {
        public Fruit(string name, int size, string color) 
        {
            Name = name;
            Size = size;
            Color = color;
        }
        public string Name { get; set; }

        public int Size { get; set; }

        public string Color { get; set; }

        public override string ToString()
        {
            return string.Format("Name:{0},Size:{1},Color:{2}", Name, Size, Color);
        }

        public virtual  void Show()
        {
            Console.WriteLine(this.ToString());
        }
    }
}
